import { createApp } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersistedstate from "pinia-plugin-persistedstate";

import App from "./App.vue";
import router from "./router";

// 基础样式
// import '@/styles/common.scss'
// 图片懒加载;
import { lazyPlugin } from "@/directives";

// 引入全局组件插件
import { componentPlugin } from "@/components";
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
const app = createApp(App);

app.use(pinia);
app.use(router);
app.use(componentPlugin);
app.use(lazyPlugin);
app.mount("#app");
